import request from '../utils/request'

// 封装列表
export function getPackageList(data) {
  return request({
    method: 'post',
    url: '/api/packagemanagement/PageListAsync',
    data,
  })
}

//添加封装
export function addPackage(data) {
  return request({
    method: 'post',
    url: '/api/packagemanagement/AddAsync',
    data,
  })
}

//编辑封装
export function editPackage(data) {
  return request({
    method: 'put',
    url: '/api/packagemanagement/UpdateAsync',
    data,
  })
}

//删除封装
export function delPackage(params) {
  return request({
    method: 'delete',
    url: '/api/packagemanagement/DeleteAsync',
    params,
  })
}
